package com.yr.manager.client.fa;

import com.yr.manager.client.userclient;
import com.yr.util.R;
import org.springframework.cloud.openfeign.FallbackFactory;
public class userback implements FallbackFactory<userclient>{
    @Override
    public userclient create(Throwable cause) {
        return new userclient() {
            @Override
            public R selectById1() {
                return R.error("over");
            }

            @Override
            public R selectById2(Integer id) {
                return R.error("over");
            }
        };
    }
}
